package grape.house.rest.areainterval.mapper;

import grape.house.rest.areainterval.form.AreaIntervalListForm;
import grape.house.service.areainterval.po.AreaInterval;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.house.rest.areainterval.form.AreaIntervalCreateForm;
import grape.house.rest.areainterval.form.AreaIntervalUpdateForm;
import grape.house.rest.areainterval.form.AreaIntervalListPageForm;
import grape.house.rest.areainterval.vo.AreaIntervalVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 面积区间表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-17
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface AreaIntervalWebMapper extends WebMapper<AreaIntervalVo, AreaInterval> {

    AreaInterval formToPo(AreaIntervalCreateForm f);
    AreaInterval formToPo(AreaIntervalUpdateForm f);
    AreaInterval formToPo(AreaIntervalListPageForm f);
    AreaInterval formToPo(AreaIntervalListForm f);
}
